package com.wzl.factory.easyFactoty;

import java.util.ArrayList;

/**
 * @description:
 * @author: weizhongli
 * @create: 2022-08-27 23:25
 */
public class Factory {

    public ArrayList<Object> createBMW(int type) {
        switch (type) {

            case 320:
                return new BMW320().BMW320();

            case 325:
                return new BMW325().BMW325();

            default:
                break;
        }
        return null;
    }
}